package edu.sdibt;

public class Producer extends Thread{

	private int number;
	private Storage storage;
	
	
	public Producer(int number, Storage storage) {
		super();
		this.number = number;
		this.storage = storage;
	}

	public void run() {
		storage.produce(number);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public Storage getStorage() {
		return storage;
	}

	public void setStorage(Storage storage) {
		this.storage = storage;
	}
	
}
